<#if action?contains("modificaAnagrafica")>
    <h2>Modifica Curriculum - Dati Anagrafici</h2>
<#else>
    <h2>Registrazione Curriculum - Dati Anagrafici</h2>
</#if>

<br/>

<#if errore??><p class="errore"> ${errore} </p></#if>
<#if messaggio??><p> ${messaggio} </p></#if>

<br/>
<p>
  I campi contrassegnati da <span class="red">*</span> sono obbligatori.
</p>

<form action="${action}" method="post" class="form">

        <fieldset>
            <legend>Anagrafica</legend>

            <ul>
                <li>
                    <label>Nome:<span class="red">*</span></label>
                    <input type="text" maxlength="50" name="nomeCandidato" value="${curriculum.nome?html}"/>
                </li>

                <li>
                    <label>Cognome:<span class="red">*</span></label>
                    <input type="text" size="30" name="cognomeCandidato" value="${curriculum.cognome?html}"/>
                </li>

                <li>
                    <label>Data di nascita:<span class="red">*</span></label>
                    <input class="data" type="text" name="dataDiNascita" <#if curriculum.dataDiNascita??>
                           value="${curriculum.dataDiNascita?string("dd/MM/yyyy")}" </#if> /><label>&nbsp;(gg/mm/aaaa)</label>
                </li>

                <li>
                    <label>Sesso:<span class="red">*</span></label>
                    <input type="radio" name="sesso" value="M" <#if curriculum.sesso.equals("M")> checked="checked" </#if> /><label class="short">M</label>
                    <input type="radio" name="sesso" value="F" <#if curriculum.sesso.equals("F")> checked="checked" </#if> /><label class="short">F</label>
                </li>

                <li>
                    <label>Indirizzo:<span class="red">*</span></label>
                    <input type="text" name="indirizzo" value="${curriculum.indirizzo?html}"/>
                </li>

                <li>
                    <label>Citt&agrave;:<span class="red">*</span></label>
                    <input type="text" maxlength="50" name="citta" value="${curriculum.citta?html}"/>
                </li>

                <li>
                    <label>CAP:<span class="red">*</span></label>
                    <input class="cap" type="text" name="cap" value="${curriculum.cap}" maxlength="5"/>
                </li>

                <li>
                    <label>Provincia:<span class="red">*</span></label>
                    <select class="province" size="1" name="provincia">

                        <option value="Provincia">Provincia</option>

                        <#list provincie as provincia>
                        <option value="${provincia}" <#if provincia = curriculum.provincia> selected="selected" </#if> >${provincia}</option>
                        </#list>
                    </select>
                </li>

                <li>
                    <label>Email:<span class="red">*</span></label>
                    <input type="text"  name="email" value="${curriculum.email}" />
                </li>

                <li>
                    <label>Telefono:</label>
                    <input class="telefono" type="text" name="telefono" value="${curriculum.telefono}"/>
                </li>

                <li>
                    <label>Automunito:<span class="red">*</span></label>
                    <input type="radio" name="automunito" value="SI" <#if curriculum.automunito.equals("SI")> checked="checked"</#if> /><label class="short">SI</label>
                    <input type="radio" name="automunito" value="NO" <#if curriculum.automunito.equals("NO")> checked="checked"</#if> /><label class="short">NO</label>
                </li>

            </ul>

        </fieldset>

    <hr/>

    <p class="right">
        <label>Premi <b>avanti</b> per proseguire l'inserimento del tuo curriculum:<br/></label>
        <input type="submit" value="Avanti" name="Invia"/>
    </p>
</form>